package com.lyl.cloud.controller;

import com.lyl.cloud.common.base.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 罗亚龙
 * @date 2022/2/13 15:48
 */
@RestController
public class TestController {

    @GetMapping("/ok")
    public String ok(){
        String str = "ok is TestController";
        System.out.println("str = " + str);
        return str;
    }

    @GetMapping("/ok2")
    public Result ok(String s){
        String str = "ok is TestController : s = " + s;
        System.out.println("str = " + str);
        return Result.success(str);
    }
}
